// project created on 25/11/2010 at 14:10
#include <iostream>
#include "matrix.h"
using namespace std;

int main (int argc, char *argv[])
{
	
	/*

	Matrix m('b',3,3);
	m.print();
	
	m.fill(1.,2.,3.,4.,5.,6.,7.,8.,9.,10.);
	
	
	cout<<endl;
	m.print();
	
	Matrix i(m);
	
	cout<<endl;
	
	i.print();
	
	m.fill(5.,3.,0.,0.,0.);
	cout<<endl;
	m.print();
	
	cout<<endl;
	
	i.print();
	
*/


Matrix a(2,2,
1.,2.,
3.,4.);

Matrix c('b',2,2);

Matrix b('b',2,2);

cout<<endl<<endl<<c[0][0]<<endl;

a.print();
cout<<endl;
cout<<"affichage b : "<<endl;
b.print();
cout<<endl<<"matrice ok"<<endl;

c.print();
cout<<endl<<"affichage c"<<endl;

cout<<endl<<"addition : ";
c=a+b;


cout<<endl<<"affichage resultat"<<endl;
cout<<endl<<"partie a : "<<a[0][0];

cout<<endl<<"partie b : "<<b[0][0];
cout<<endl<<"partie c ; "<<c[0][0];



	
	return 0;
}
